package com.ruoyi.system.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品信息 ：与店铺关联对象 tb_product
 * 
 * @author wh
 * @date 2024-09-18
 */
public class OfflinePurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID，主键 */
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品图片 */

    private String productPhoto;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private String productDetail;

    /** 类别ID */

    private Long categoryId;

    /** 商品价格（中份价格） */
    @Excel(name = "商品价格", readConverterExp = "中=份价格")
    private Long price;

    @Excel(name = "库存数量")
    private Long inventoryNum;

    /** 大份价格 */
    @Excel(name = "大份价格")
    private Long maxPrice;

    /** 小份价格 */
    @Excel(name = "小份价格")
    private Long minPrice;

    /** 规格ID */

    private Long specificationId;


    private Long merchantId;

    public Long getInventoryNum() {
        return inventoryNum;
    }

    public void setInventoryNum(Long inventoryNum) {
        this.inventoryNum = inventoryNum;
    }

    /** 销量 */
    @Excel(name = "销量")
    private Long saleNum;

    /** 是否折扣，0表示无折扣，1表示有折扣 */
    @Excel(name = "是否折扣，0表示无折扣，1表示有折扣")
    private String isDiscount;

    /** 上下架状态，0表示下架,1表示上架 */
    @Excel(name = "上下架状态，0表示下架,1表示上架")
    private String isOnSale;

    /** 折扣力度（xx折，比如：95折） */
    @Excel(name = "折扣力度", readConverterExp = "x=x折，比如：95折")
    private Long discontStrength;

    /** 店铺id */

    private Long storeId;

    /** 订单管理信息 */
    private List<TbCustomerOrder> tbCustomerOrderList;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductPhoto(String productPhoto) 
    {
        this.productPhoto = productPhoto;
    }

    public String getProductPhoto() 
    {
        return productPhoto;
    }
    public void setProductDetail(String productDetail) 
    {
        this.productDetail = productDetail;
    }

    public String getProductDetail() 
    {
        return productDetail;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setMaxPrice(Long maxPrice) 
    {
        this.maxPrice = maxPrice;
    }

    public Long getMaxPrice() 
    {
        return maxPrice;
    }
    public void setMinPrice(Long minPrice) 
    {
        this.minPrice = minPrice;
    }

    public Long getMinPrice() 
    {
        return minPrice;
    }
    public void setSpecificationId(Long specificationId) 
    {
        this.specificationId = specificationId;
    }

    public Long getSpecificationId() 
    {
        return specificationId;
    }
    public void setSaleNum(Long saleNum) 
    {
        this.saleNum = saleNum;
    }

    public Long getSaleNum() 
    {
        return saleNum;
    }
    public void setIsDiscount(String isDiscount) 
    {
        this.isDiscount = isDiscount;
    }

    public String getIsDiscount() 
    {
        return isDiscount;
    }
    public void setIsOnSale(String isOnSale) 
    {
        this.isOnSale = isOnSale;
    }

    public String getIsOnSale() 
    {
        return isOnSale;
    }
    public void setDiscontStrength(Long discontStrength) 
    {
        this.discontStrength = discontStrength;
    }

    public Long getDiscontStrength() 
    {
        return discontStrength;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }

    public List<TbCustomerOrder> getTbCustomerOrderList()
    {
        return tbCustomerOrderList;
    }

    public void setTbCustomerOrderList(List<TbCustomerOrder> tbCustomerOrderList)
    {
        this.tbCustomerOrderList = tbCustomerOrderList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productPhoto", getProductPhoto())
            .append("productDetail", getProductDetail())
            .append("categoryId", getCategoryId())
            .append("price", getPrice())
            .append("maxPrice", getMaxPrice())
            .append("minPrice", getMinPrice())
            .append("specificationId", getSpecificationId())
            .append("saleNum", getSaleNum())
            .append("isDiscount", getIsDiscount())
            .append("isOnSale", getIsOnSale())
            .append("discontStrength", getDiscontStrength())
            .append("storeId", getStoreId())
            .append("tbCustomerOrderList", getTbCustomerOrderList())
            .toString();
    }
}
